package com.ruoyi.common.core.domain.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 安全信息类别对象 t_processsafety_informationcategory
 * 
 * @author ruoyi
 * @date 2024-08-28
 */
public class TProcesssafetyInformationcategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 分类编码 */
    @Excel(name = "分类编码")
    private String code;

    /** 分类父级ID */
    @Excel(name = "分类父级ID")
    private Long parentId;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long sequence;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTs;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createdBy;

    /** 公司id */
    @Excel(name = "公司id")
    private Long companyId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setSequence(Long sequence) 
    {
        this.sequence = sequence;
    }

    public Long getSequence() 
    {
        return sequence;
    }
    public void setCreateTs(Date createTs) 
    {
        this.createTs = createTs;
    }

    public Date getCreateTs() 
    {
        return createTs;
    }
    public void setCreatedBy(Long createdBy) 
    {
        this.createdBy = createdBy;
    }

    public Long getCreatedBy() 
    {
        return createdBy;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }

    private List<TProcesssafetyInformationcategory> children = new ArrayList<TProcesssafetyInformationcategory>();

    public List<String> listcode;

    public List<TProcesssafetyInformationcategory> getChildren() {
        return children;
    }

    public void setChildren(List<TProcesssafetyInformationcategory> children) {
        this.children = children;
    }

    public List<String> getListcode() {
        return listcode;
    }

    public void setListcode(List<String> listcode) {
        this.listcode = listcode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("parentId", getParentId())
            .append("sequence", getSequence())
            .append("createTs", getCreateTs())
            .append("createdBy", getCreatedBy())
            .append("companyId", getCompanyId())
            .toString();
    }
}
